package com.hyjx.framework.uc.depart;

import java.util.Comparator;

/**
 * 部门排序
 *
 * @author Peter
 */
public class DepartModelSortAsc implements Comparator<DepartModel> {
    @Override
    public int compare(DepartModel o1, DepartModel o2) {
        //o1和o2比较，如果o1小，则o1排在前面
        return o1.getOrder_no().compareTo(o2.getOrder_no());
    }
}